﻿using System;
using System.Collections.Generic;
using System.Text;
using Vara.Location;
using Vara.Person;
using Vara.Insurance;
using Vara.Warranty;
using Vara.Utility;
using System.Data;

namespace Vara.Asset
{
    public class Asset : IAsset
    {
        #region IAsset Implementations

        // private variables
        private readonly int _id = 0;
        private string _assetLabel = string.Empty;
        private string _serialNumber = string.Empty;
        private string _displayName = string.Empty;
        private string _make = string.Empty;
        private string _model = string.Empty;
        private ILocation _location = null;
        private IPerson _owner = null;
        private IAssetValue _value = null;
        private List<IWarranty> _WarrantyPolicies;

        //public properties
        public List<IWarranty> WarrantyPolicies;
        public virtual int ID
        {
            get
            {
                return _id;
            }
        }
        public virtual string AssetLabel 
        {
            get
            {
                return _assetLabel;
            }
            set
            {
                _assetLabel = value;
            }
        }
        public virtual string SerialNumber 
        {
            get 
            {
                return _serialNumber;
            }
            set
            {
                _serialNumber = value;
            }
        }
        public virtual string DisplayName
        {
            get 
            {
                return _displayName;
            }
            set
            {
                _displayName = value;
            }
        }
        public virtual string Make
        {
            get 
            {
                return _make;
            }
            set
            {
                _make = value;
            }
        }
        public virtual string Model
        {
            get
            {
                return _make;
            }
            set
            {
                _make = value;
            }
        }

        #endregion

        public Asset()
        {
        }

        public Asset(int id)
        {
            _id = id;
        }


    }
}
